package de.jmda.gen.java.impl;

import static org.junit.Assert.assertTrue;

import org.apache.log4j.Logger;
import org.junit.Test;

import de.jmda.gen.GeneratorException;
import de.jmda.gen.java.DeclaredStaticMethodGenerator;

public class JUT_DefaultDeclaredStaticMethodGenerator
{
	private final static Logger LOGGER =
      Logger.getLogger(JUT_DefaultDeclaredStaticMethodGenerator.class);

	@Test
	public void testDefaultDeclaredStaticMethodGenerator()
			throws GeneratorException
	{
		DeclaredStaticMethodGenerator generator =
        new DefaultDeclaredStaticMethodGenerator();

		StringBuffer generated = generator.generate();

		LOGGER.debug("generated [" + generated + "]");

		assertTrue(
				"unexpected method declaration [" + generated + "]",
				(
						"static void method_name()" + System.lineSeparator() +
						"{"                         + System.lineSeparator() +
						"}"
				).contentEquals(generated));
	}
}